<template lang="html">
  <Panel title="金融头条" :class="$style.panel">
    <section :class="$style.content">
      <Swiper :options="options">
        <Swiper-slide>百万白条券免费送，速来领取！！ <em>></em> </Swiper-slide>
        <Swiper-slide>签到领流量，1元500M！<em>></em> </Swiper-slide>
      </Swiper>
    </section>
  </Panel>
</template>

<script>
import Panel from "../core/panel.vue";
import { Swiper, SwiperSlide, directive } from "vue-awesome-swiper";
import "swiper/css/swiper.css";
export default {
  components: {
    Panel,
    Swiper,
    SwiperSlide
  },
  directives: {
    swiper: directive
  },
  data() {
    return {
      options: {
        autoplay: true,
        loop: true,
        direction: "vertical"
      }
    };
  }
};
</script>

<style lang="scss">
.swiper-container-vertical {
  height: 72px;
  .swiper-slide {
    font-family: PingFangSC-Medium;
    font-size: 28px;
    color: #333;
    em {
      color: #ddd;
      float: right;
      margin-right: 20px;
    }
  }
}
</style>

<style lang="scss" module>
@import "../../style/element.scss";
.panel {
  @include panel;
  > h4 {
    display: none;
  }
  margin-top: 120px !important;
  .content {
    height: 72px;
    line-height: 72px;
    overflow: hidden;
    padding-left: 178px;
    background: url(//m.jr.jd.com/spe/qyy/main/images/scroll_title_img.png) left
      top no-repeat;
  }
}
</style>
